//
//  MSBasePageView.m
//  MSJD
//
//  Created by xiangbo on 2018/12/14.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import "MSBasePageView.h"

@implementation MSBasePageView
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.isNeedConfigData = YES;
    }
    return self;
}

- (NSString*)identifier:(id)data indexPath:(NSIndexPath *)indexPath{
    return @"";
}
- (void)registetDetailView:(NSString *)className identifier:(NSString *)identifier{
    [self.identifierDic setObject:className forKey:identifier];
}

//支持从外部传入某一行的数据
- (id)cellData:(NSIndexPath *)indexPath{
    return nil;
}

#pragma mark -Property
-(NSMutableArray *)dataArray{
    if (!_dataArray) {
        _dataArray = [NSMutableArray array];
    }
    return _dataArray;
}

- (NSMutableDictionary *)identifierDic{
    if (!_identifierDic) {
        _identifierDic = [NSMutableDictionary dictionary];
    }
    return _identifierDic;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
